/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.jonasjelten.jcalc.exception;

/**
 *
 * @author Jonas Jelten
 */
public class JSyntaxException extends JParserException {

    /**
     * Creates a new instance of <code>JNumberException</code> without detail message.
     */
    public JSyntaxException() {
         super("Syntax error in the calculating Symbols!");
    }

    /**
     * Constructs an instance of <code>JNumberException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public JSyntaxException(String msg) {
        super(msg);
    }

    @Override
    public String getLocalizedMessage() {
        return "Fehlerhaftes Eingeben der Rechensymbole.";
    }
}
